﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Waiter.View;
using System.Windows.Forms;

namespace Waiter.View
{
    class FormCtrl
    {
        private static FrmMenu frmMenu = null;
        private static frmGroupList frmList = null;

        /// <summary>
        /// Hien thi form menu
        /// </summary>
        public static void fsShowFrmMenu()
        {
            if (frmMenu == null || frmMenu.IsDisposed)
            {
                frmMenu = new FrmMenu();
            }
            frmMenu.Show();
        }

        /// <summary>
        /// Hien thi form user
        /// </summary>
        public static void fsShowFrmUser()
        {
            FrmUser frm = new FrmUser();
            frm.Show();
        }

        public static void fsShowfrmGroupList()
        {
            if (frmList == null || frmList.IsDisposed)
            {
                frmList = new frmGroupList();
            }
            frmList.Show();
        }
                
    }
}
